import webbrowser
from Tkinter import *
import urllib
 
def Ouvrir():
    url= texte.get()
    webbrowser.open_new(url)
 
test = Tk()
 
texte=StringVar()

Page = Button(test, text='Ouvrir la page', height=1, command=Ouvrir)
 
Page.pack(side=TOP, fill=BOTH)
 
entree = Entry(test, background='grey',textvariable=texte)
entree.pack(side=TOP, fill=BOTH)
 
test.mainloop()
